﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RitS.Graphics;
using RitS.Physics;
using System.Windows.Media;
using System.Windows;

namespace RitS.TestObjects
{
    class SimpleRock : PhysicsBodyBase, IDrawable
    {
        public double Radius { get; set; }

        public List<ColoredGeometry> Shape
        {
            get 
            {
                List<ColoredGeometry> result = new List<ColoredGeometry>();
                Geometry geometry = new EllipseGeometry(new Point(0,0), Radius, Radius);
                geometry.Transform = new TranslateTransform(Position.X + RelativeCenterMass.X, Position.Y + RelativeCenterMass.Y);

                result.Add(new ColoredGeometry { Color = new Pen(Brushes.White, Radius / 10 ), Shape = geometry });
                return result;
            }
        }

        public bool CollisionTest(System.Windows.Point checkPoint)
        {
            throw new NotImplementedException();
        }

        public bool CollisionTest(System.Windows.Media.Geometry checkShape)
        {
            throw new NotImplementedException();
        }
    }
}
